<?php
namespace Spider\Site;

use DOMWrap\Document;
use GuzzleHttp\Cookie\SetCookie;
use GuzzleHttp\Psr7\Response;
use lactone\Core\Site\Site;

class zhihu_com  extends Site{

    protected   $host  = 'http://www.zhihu.com';

    /**
     * 登录
     * @return bool
     */
    public function Login(){
        return true;
    }

    /**
     * 获取需要登录的其它数据
     * @return bool
     */
    private function getLoginData(){
        return false;
    }

    public function needLogin(){
        return false;
    }

    public function send(){
        $task = [];

        for($i = 0;$i<=100;$i++){
            $task[] = [
                'type' =>'a',
                'data' => $i
            ];
        }

        $this->sendToServer($task);
    }

    /**
     * 对数据进行处理
     * @param Response $response
     */
    public function process(Response $response){

        return true;
    }



}